package com.jacky.iot.config;

public class WillProperties {

    private String topic;
    private Boolean retained = Boolean.FALSE;
    private Integer qos = 1;
    private String payload;

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public Boolean getRetained() {
        return retained;
    }

    public void setRetained(Boolean retained) {
        this.retained = retained;
    }

    public Integer getQos() {
        return qos;
    }

    public void setQos(Integer qos) {
        this.qos = qos;
    }

    public String getPayload() {
        return payload;
    }

    public void setPayload(String payload) {
        this.payload = payload;
    }

    @Override
    public String toString() {
        return "WillProperties{" +
                "topic='" + topic + '\'' +
                ", retained=" + retained +
                ", qos=" + qos +
                ", payload='" + payload + '\'' +
                '}';
    }
}
